package com.company.service;

import java.util.List;

import com.company.dao.NewsDao;
import com.company.entity.News;

public class NewsService {
	NewsDao newsDao;

	public NewsDao getNewsDao() {
		return newsDao;
	}

	public void setNewsDao(NewsDao newsDao) {
		this.newsDao = newsDao;
	}

	public News query(int id) {
		return newsDao.query(id);
	}
	public List<News> querys() {
		return newsDao.querys();
	}
	public void save(News news) {
		newsDao.save(news);
	}
	public void update(News news) {
		newsDao.update(news);
	}
	public void delete(News news) {
		newsDao.delete(news);
	}
	
}
